<template>
  <div>
    <Comp1 name="三丰" :score="score" @change-score="handleScore" />
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import Comp1 from "./comp1.vue";
const score = ref(40);
const handleScore = (n: number) => {
  score.value += n;
};
</script>

<style scoped></style>
